package fitness

import "fitness/internal/entity"

// 客户信息
type User struct {
	entity.Model
	Username *string `json:"username" gorm:"username"` //用户名
	Nickname *string `json:"nickname" gorm:"nickname"` //昵称
	Gender   *string `json:"gender" gorm:"gender"`     //性别((1-男 2-女 0-保密)
	Openid   *string `json:"openid" gorm:"openid"`     //微信用户openid
	Avatar   *string `json:"avatar" gorm:"avatar"`     //微信用户头像
	Phone    *string `json:"phone" gorm:"phone"`       //微信用户电话
	Status   *string `json:"status" gorm:"status"`     //状态((1-正常 0-禁用)
}

func (User) TableName() string {
	return "fitness_user"
}

type MpUserPageQuery struct {
	PageQuery entity.PageQuery
	Keywords  *string `form:"keywords"`
}
